﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace libfinancialdata
{
	public enum DataFileType
	{
		THS,	//tonghuashun
		DZH,	//dazhihui
		NSDQ,
		NYSE
	}

	interface IParseBase
	{
		//parse a datafile into quotetree
		bool Parse(string filename, out QuoteTree tree);
	}

	public static class FinancialData
	{
		//parse a datafile into quotetree
		public static bool ParseData(string filename, DataFileType type, out QuoteTree tree)
		{
			switch (type)
			{
			case DataFileType.THS:
					ParserThs p = new ParserThs();
				break;
			}

			throw new NotImplementedException();
		}
	}
}
